package org.zk.entity;




import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Alicelonely
 * @since 2019-12-11
 */
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 生成主键添加
     */

    private String orderId;
    /**
     * 课程外键
     */

    private Course course;
    /**
     * 用户外键
     */

    private User user;
    /**
     * 提交订单的时间
     */

    private  String orderTime;

    /**
     *付款时间
     */
    private Date orderPayTime;

    /**
     * 订单总价
     */

    private Double orderTotal;
    /**
     * 0未付，1已付
     */
    private Broadcast broadcast;
    /**
     * 直播表的外键
     */
    private Integer orderState;
    /**
     * 会员id
     */
    private Member member;


    public Broadcast getBroadcast() {
        return broadcast;
    }

    public void setBroadcast(Broadcast broadcast) {
        this.broadcast = broadcast;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }


    public  String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime( String orderTime) {
        this.orderTime = orderTime;
    }

    public Double getOrderTotal() {
        return orderTotal;
    }

    public void setOrderTotal(Double orderTotal) {
        this.orderTotal = orderTotal;
    }

    public Integer getOrderState() {
        return orderState;
    }

    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Date getOrderPayTime() {
        return orderPayTime;
    }

    public void setOrderPayTime(Date orderPayTime) {
        this.orderPayTime = orderPayTime;
    }

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId='" + orderId + '\'' +
                ", course=" + course +
                ", user=" + user +
                ", orderTime='" + orderTime + '\'' +
                ", orderPayTime=" + orderPayTime +
                ", orderTotal=" + orderTotal +
                ", orderState=" + orderState +
                ", member=" + member +
                '}';
    }
}

